﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderInfoCommon.aspx.cs"
    Inherits="Home_AS_OrderInfoCommon" %>

<% 
    var action = Request.QueryString["Action"] + "";
    switch (action.ToLower())
    {
        case "userreciveinfo":
%><%
break;
        case "payinfo":
%>
<%
if (_payModesList != null && _payModesList.Count > 0)
{
    var html = "";
    var tag = "支付方式：";
    for (var i = 0; i < _payModesList.Count; i++)
    {
        html += "<div class=\"divrow\"><dl><dt style='width:80px;'>" + tag + "</dt><dd><input  type='radio' name='paymode' " + (i == 0 ? "checked='checked'" : "") + " value='" + _payModesList[i].PayModeName + "' id='" + _payModesList[i].PayModeID + "'>&nbsp;<label for='" + _payModesList[i].PayModeID + "'>" + _payModesList[i].PayModeName + "</label></dd></dl></div>";
        if (i == 0)
        {
            tag = "&nbsp;";
        }
    }
    tag = "配送方式";
    for (var i = 0; i < _deliveries.Count; i++)
    {
        html += "<div class='divrow'><dl><dt style='width:80px;'>" + tag + "</dt><dd><input onclick='orderfee();' type='radio' name='sendmode' " + (i == 0 ? "checked='checked'" : "") + " value='" + _deliveries[i].DeliveryName + "' id='" + _deliveries[i].DeliveryID + "'>&nbsp;<label for='" + _deliveries[i].DeliveryID + "'>" + _deliveries[i].DeliveryName + "</label></dd></dl></div>";
        if (i == 0)
        {
            tag = "&nbsp;";
        }
    }
    Response.Write(html);
    Response.End();
}
%>
<%
break;
        case "orderinfo":
%>
<%if (_shoppingCartsList != null && _shoppingCartsList.Count > 0)
  {
      
%>
<table width="90%" cellpadding="0" cellspacing="1" style="background: #CCCCCC; text-align: center;">
    <tr>
        <td style="background-color: #FFF4D7; height: 26px;">
            商品编号
        </td>
        <td style="background-color: #FFF4D7;">
            商品名称
        </td>
        <td style="background-color: #FFF4D7;">
            点客价
        </td>
        <td style="background-color: #FFF4D7;">
            折扣
        </td>
        <td style="background-color: #FFF4D7;">
            赠送积分
        </td>
        <td style="background-color: #FFF4D7;">
            库存状态
        </td>
        <td style="background-color: #FFF4D7;">
            数量
        </td>
    </tr>
    <%
        for (var i = 0; i < _shoppingCartsList.Count; i++)
        {
    %>
    <tr>
        <td style="background-color: #fff; height: 26px;">
            <%=_shoppingCartsList[i].CartInfo.GoodsID %>
        </td>
        <td style="background-color: #fff;">
            <%=_shoppingCartsList[i].GoodsName %>
        </td>
        <td style="background-color: #fff;">
            <%=_shoppingCartsList[i].CartInfo.Price.ToString("C2") %>
        </td>
        <td style="background-color: #fff;">
        </td>
        <td style="background-color: #fff;">
            <%=_shoppingCartsList[i].CartInfo.PresentScores %>
        </td>
        <td style="background-color: #fff;">
        现货
        </td>
        <td style="background-color: #fff;">
            <%=_shoppingCartsList[i].CartInfo.Quantity %>
        </td>
    </tr>
    <%} %>
</table>
<%
Response.End();
  }
%>
<%
break;
        case "coupon":
%><%
break;

    }
%>